<template>
    <div class="comtainer">
        <el-input
            v-model="modelValue"
            placeholder="请输入内容"
            style="width: 300px"
            clearable
        />
    </div>
</template>

<script setup lang="ts">
// defineModel 已经包含了 props 和 emit 的功能，无需额外定义 emit
const modelValue = defineModel<string>('modelValue', {
    type: String,
    required: true,
})
</script>

<style lang="scss" scoped></style>
